index.d.ts ➔ PluginCritical   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
1
import { Plugin } from 'rollup';
2
3
/**
4
 * [Vite.js](https://vitejs.dev/) & [Rollup](https://rollupjs.org/) plugin for generating critical CSS
5
 * that uses the [critical](https://github.com/addyosmani/critical) generator under the hood.
6
 *
7
 * @param {CriticalPluginConfig} pluginConfig - the plugin configuration object
8
 * @param {Function} callback - callback upon completion of the critical CSS generation
9
 * @constructor
10
 */
11
declare function PluginCritical(pluginConfig: CriticalPluginConfig, callback?: CriticalPluginCallback): Plugin;
12
13
export { PluginCritical as default };
14